/**
 * Created by zhaojing on 2017/11/22.
 */


import ajax from '../../../../grsc-base/util/ajax';

export default {
    /***
     * 訂單買入或求購信息查詢
     * **/
    orderQuery(param = {}) {
        return ajax.get('/c2cApi/c2ctransactionorderinfo/order-query', {
            data: param
        });
    },

    /***
     * 訂單確認支付
     * **/
    buyOrderPay(param = {},header = {}) {
        return ajax.get('/c2cApi/c2ctransaction/order-pay', {
            data: param,
            header:header
        });
    },

    /***
     * 取消訂單
     * **/
    buyOrderCancel(param = {}) {
        return ajax.get('/c2cApi/c2ctransaction/order-cancel', {
            data: param
        });
    },

    /***
     * 訂單確認打幣
     * **/
    sellOrderEnsure(param = {},header = {}) {
        return ajax.get('/c2cApi/c2ctransaction/transfor-ensure', {
            data: param,
            header:header
        });
    },

    /***
     * 售出廣告查詢
     * **/
    sellAdvertQuery(param = {}) {
        return ajax.get('/c2cApi/c2cselladvert/myadvert-query', {
            data: param
        });
    },

    /***
     * 售出廣告刪除
     * **/
    sellAdvertDelete(param = {}) {
        return ajax.get('/c2cApi/c2cselladvert/advert-remove', {
            data: param
        });
    },

    /***
     * 求購廣告查詢
     * **/
    buyAdvertQuery(param = {}) {
        return ajax.get('/c2cApi/c2cbuyadvert/myadvert-query', {
            data: param
        });
    },

    /***
     * 求購廣告刪除
     * **/
    buyAdvertDelete(param = {}) {
        return ajax.get('/c2cApi/c2cbuyadvert/advert-remove', {
            data: param
        });
    },
};